<template>
  <div>
    <div>
      <el-table :data="tableData" border style="width: 100%">
        <!-- <el-table-column prop="sno_name" align="center" label="专利名称"> </el-table-column> -->
        <el-table-column prop="year" align="center" label="年份"> </el-table-column>
        <!-- <el-table-column prop="sno" align="center" label="专利号"> </el-table-column> -->
        <el-table-column prop="company" align="center" label="所属单位">
        </el-table-column>
        <el-table-column prop="name" align="center" label="奖项名称">
        </el-table-column>
        <el-table-column prop="back_name" align="center" label="区域">
        </el-table-column>
      </el-table>

      <el-pagination
        style="margin-top: 10px"
        :current-page="page"
        :page-size="limit"
        @current-change="currentChange"
        layout="prev, pager, next"
        :total="total"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  computed: {},
  data() {
    return {};
  },
  props: {
    tableData: {
      type: Array,
      default: () => [],
    },
    keyword: {
      type: String,
      default: () => "",
    },
    total: {
      type: Number,
      default: 0,
    },
    page: {
      type: Number,
      default: 1,
    },
    limit: {
      type: Number,
      default: 1,
    },
  },
  async mounted() {},
  methods: {
    excellentImportType(type) {
      this.$emit("excellentImportType", [type,1]);
    },
    getsearch() {
      this.$emit("getsearch", this.keyword);
    },
    currentChange(page) {
      this.$emit("currentChange", page);
    },
  },
};
</script>

<style scoped lang="less">
::v-deep .el-input {
  width: initial;
}
</style>
